#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int i = 0;
	int j = 0;
	scanf("%d %d", &i, &j);
	int tmp = i;
	i = j;
	j = tmp;
	printf("%d %d",i,j);
	return 0;
}